<template>
  <div class="Dh_table">
    <el-dialog :title="title" :visible.sync="dialogTableVisible" :before-close="handleClose">
      <el-table :data="gridData" tooltip-effect="dark" border style="width: 100%">
        <el-table-column property="stationName" label="车站名称"></el-table-column>
        <el-table-column property="lastDate" label="已生成日期"></el-table-column>
      </el-table>
    </el-dialog>
  </div>
</template>
<script>
export default {
  props: ['show', 'busDate'],
  data() {
    return {
      gridData: this.busDate,
      dialogTableVisible: this.show,
      title: ''
    }
  },
  mounted() {
    this.title = '查看' + this.busDate[0].stationName + '已生成计划详情'
  },
  methods: {
    handleClose() {
      this.dialogTableVisible = false
      this.$emit('hide')
    }
  }
}
</script>
<style></style>
